import request from '@/utils/request'

// 查询订单资源验算列表
export function listOrderResourcesYs(query) {
  return request({
    url: '/pcplan/orderResourcesYs/list',
    method: 'get',
    params: query
  })
}

// 查询订单资源验算详细
export function getOrderResourcesYs(id) {
  return request({
    url: '/pcplan/orderResourcesYs/' + id,
    method: 'get'
  })
}

// 新增订单资源验算
export function addOrderResourcesYs(data) {
  return request({
    url: '/pcplan/orderResourcesYs',
    method: 'post',
    data: data
  })
}

// 修改订单资源验算
export function updateOrderResourcesYs(data) {
  return request({
    url: '/pcplan/orderResourcesYs',
    method: 'put',
    data: data
  })
}

// 删除订单资源验算
export function delOrderResourcesYs(id) {
  return request({
    url: '/pcplan/orderResourcesYs/' + id,
    method: 'delete'
  })
}

export function handYs(ids) {
  return request({
    url: '/pcplan/orderResourcesYs/handYs/'+ids,
    method: 'get',
    timeout:90000
  })
}


